package edu.usmp.p2.action;

import java.util.List;
import com.opensymphony.xwork2.ActionSupport;

import edu.usmp.model.Paciente;
import edu.usmp.common.service.CommonService;
import edu.usmp.model.Paciente;

public class ListarClienteAction extends ActionSupport {

		private List<Paciente> paciente;
		private CommonService service = new CommonService();
		
		public String execute(){
			String camino="success";
			
			paciente=service.listarPaciente();
			return camino;
		}

		public List<Paciente> getCliente() {
			return paciente;
		}
		public void setCliente(List<Paciente> paciente) {
			this.paciente = paciente;
		}
	}